﻿using System;
using System.Configuration;
using System.Data.SqlClient;

namespace SinBiota.Model.Persistence.SessionManager
{
    public class ConnectionFactory : IConnectionFactory
    {
        public SqlConnection GetDomainConnection()
        {
            return new SqlConnection(ConfigurationManager.ConnectionStrings["domainDB"].ConnectionString);
        }
        public SqlConnection GetMapConnection()
        {
            return new SqlConnection(ConfigurationManager.ConnectionStrings["mapDB"].ConnectionString);
        }

        public SqlConnection GetTileConnection()
        {
            return new SqlConnection(ConfigurationManager.ConnectionStrings["tileDB"].ConnectionString);
        }
    }
}
